package com.yihaodian.indices;

import org.apache.solr.core.CoreContainer;

import com.google.inject.AbstractModule;

public class IndicesModule extends AbstractModule {

	@Override
	protected void configure() {
		CoreContainer coreContainer = SolrContainerFactory.getCoreContainer();
		bind(CoreContainer.class).toInstance(coreContainer);
		bind(IndicesService.class).to(SolrIndicesService.class)
				.asEagerSingleton();
		bind(IndicesClusterStateService.class).asEagerSingleton();
	}
}
